.class Lcom/waiqin365/compons/camera/l;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    new-instance v1, Lcom/waiqin365/compons/camera/u;

    iget-object v2, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v3, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-direct {v1, v2, v3}, Lcom/waiqin365/compons/camera/u;-><init>(Lcom/waiqin365/compons/camera/CameraPreviewActivity;Landroid/content/Context;)V

    iput-object v1, v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->e:Lcom/waiqin365/compons/camera/u;

    iget-object v0, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->a(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v1, v1, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->e:Lcom/waiqin365/compons/camera/u;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)I

    move-result v0

    if-ltz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->a(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v1}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/photopreview/PhotoPreviewViewPager;->setCurrentItem(I)V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->c(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v2}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)I

    move-result v2

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v2, v2, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->d(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->d(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Ljava/util/ArrayList;

    move-result-object v1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v2}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->b(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)I

    move-result v2

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/compons/camera/ad;

    iget-object v0, v0, Lcom/waiqin365/compons/camera/ad;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->e(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f020315

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    :cond_1
    :goto_0
    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->dismissDialog(I)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->removeDialog(I)V
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    return-void

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/compons/camera/l;->a:Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-static {v0}, Lcom/waiqin365/compons/camera/CameraPreviewActivity;->e(Lcom/waiqin365/compons/camera/CameraPreviewActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f020314

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_1
.end method
